	<?php 
	//if(strlen($page->ShowUserOnline())) {
    //}
	?>
<div style="background:url(/images/luxury/bg-new.png) no-repeat; width:240px; height:53px;"></div>    
<div style="background:url(/images/luxury/bg-new-repeat.png) repeat-y; width:240px;">
<div class="box-new" align="center" >
<?php
	if(!isset($sesso))
		$sesso = "";
	if(!isset($id_citta))
		$id_citta = "";
	//echo("SESSO: ".$sesso);	
	$count=0;
	//NOVITA'
	$resProfiles = $page->ShowListProfiles($sesso, $id_citta, "N", 8, "S");
    while ($row = mysql_fetch_array($resProfiles))
    {    
        $nome = stripslashes($row['nome']);
		if($nome=="")
			$nome = $row['username'];
			
		$user_id = $row['user_id'];
		$citta = $row['citta'];
		$translate = new Translate();
		$citta = $translate->TranslateCityName($citta);
		if($citta=="")
			$citta = $ITALIA;
			
		$count++;
		$nome_foto_principale = $row['nome_foto_principale'];
		
		$obj = new Main();
        $nome_url = $obj->CleanStringForUrl($nome);
		$citta_url = $obj->CleanStringForUrl($citta);
		
		switch ($row['sesso']) {
		case "D":
			$descrSessoSingolare = ucfirst($ESCORT);
			if($row['tipo_class']=="L")
				$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_LUXURY_ESCORT/$citta_url/$nome_url";		
			else
				$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
			break;
		case "U":
			$descrSessoSingolare = ucfirst($ACCOMPAGNATORE);
			$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_ACCOMPAGNATORI/$citta_url/$nome_url";
			break;
		case "T":
			$descrSessoSingolare = ucfirst($TRANS);
			if($row['tipo_class']=="L")
				$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_LUXURY_TRANS/$citta_url/$nome_url";		
			else
				$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_TRANS/$citta_url/$nome_url";
			break;   
		default:
			$descrSessoSingolare = ucfirst($ESCORT);
			$hrefProfile = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
		}
		
		$title = $nome." ".$descrSessoSingolare." ".$citta;
		?>
        <a href="<?=$hrefProfile?>" class="box-new" title="<?php echo $title; ?>"><img src="/images/users/box/<?=$nome_foto_principale?>" alt="<?php echo $title; ?>" width="80" height="103" /></a>
		<?
		if(!$count%2)
			echo("<br />");
    }
    mysql_free_result($resProfiles);    
	?>
 </div>
<div style="background:url(/images/luxury/bg-new-bottom.png) no-repeat; width:240px; height:24px;"></div> 
</div>
<!-- [ends] sidebar // -->
<div class="box"></div>